package com.fanjia.rabbitmq_consumer.direct;

import org.springframework.amqp.rabbit.annotation.RabbitHandler;
import org.springframework.amqp.rabbit.annotation.RabbitListener;
import org.springframework.stereotype.Service;

/**
 * @author fanjia
 * @className FanoutDuanxinConsumer
 * @description TODO
 * @date 2021/4/18 10:28
 */
@RabbitListener(queues = {"email.direct.queue"})
@Service
public class DirectEmailConsumer {

    @RabbitHandler
    public void receiveMessage(String message){
        System.out.println("email direct -->接收到的订单信息： -》 "+message);
    }
}
